export default {
  data() {
    return {
      firstdisable: false,
      seconddisable: false,
      thirddisable: false,
      firstdisableAll: false,
      seconddisableAll: false,
      thirddisableAll: false
    }
  },

  methods: {
    updateDisable(value, current) {
      const len = value && value.length > 0
      const test = value && value.includes(-1)
      if (!test && !len) {
        this[current+'disable'] = false
        this[current+'disableAll'] = false
      } else if (!test && len) {
        this[current+'disable'] = false
        this[current+'disableAll'] = true
      } else if (test && len) {
        this[current+'disable'] = true
        this[current+'disableAll'] = true
      }
    }
  }
}